'/
' MOTEP - Massive Online Text Environment Project
' --------------------------------------------------------------------------------
' MOTEP Server
' 
' Main_h.bmx
' 
' (c) Anton Berlin. All Rights Reserved.
'/

const APP_TITLE:string = "MOTEP Server"
const APP_VERSION:string = "0.00.1"

const RES_X:int = 800
const RES_Y:int = 600

const LOG_FILE:string = "Serverlog.txt"
const SERVER_CONFIG:string = "Server.cfg"

const PVE_SERVER_PORT:int = 27540
const PVP_SERVER_PORT:int = 27550

global masterIP:string
global masterPort:int
global maxConnections:int = 100
global serverPort:int = 27540
global serverName:string

global masterAddr:TRKSystemAddress

' Master object.
global Master:TMaster = new TMaster

' Log stream.
global logHandle:TStream

' Server peer.
global serverPeer:TRKRakPeerInterface

' Server peer shutdown time (ms).
global peerShutdownTime:int = 1000

' Character Database Object.
global WorldDatabase:TTDatabase = CreateADL()
global CharacterDatabase:TTDatabase = CreateADL()

' Global map of all characters that are stored on the
' server (not only online characters).
global GlobalCharMap:TMap = CreateMap()

' The largest existing charID. When creating a new character,
' we need to know the largest character id to create a new
' unique one.
global largestCharID:int = -1

' World objects.
global World:TWorld = new TWorld
global SPObj:TCharacter = new TCharacter
global Region1:TRegion = new TRegion
